import request from '@/utils/request';
// 获取行政区划列表
///base/region/getRegionList
export const getRegionList = (currentNode) => 
  request({
    url: `/base/region/getRegionList?currentNode=${currentNode}`,
    method: 'get',
  })

  //添加行政区划
  ///base/region/add
  export const regionAdd= (data) => 
    request({
      url: `/base/region/add`,
      method: 'post',
      data:data
    })
  //编辑行政区划
  ///base/region/edit
  export const regionEdit= (data) => 
    request({
      url: `/base/region/edit`,
      method: 'post',
      data:data
    })

  // 删除行政区划

    ////base/region/delete/{Codes}
    export const regionDelete= (code) => 
    request({
      url: `/base/region/delete/${code}`,
      method: 'get',
    })